package com.yan.demo;

public class Test4 {
    public static void main(String[] args) {
        int[] arr = {58, 17, 95, 66, 173, 996, 51, 200};
        int sum = 0;
        for (int i = 0; i < arr.length; i++) {
            if(i % 10 != 7 && (i / 10) % 10 != 7 && i % 2 == 0){
                sum += arr[i];
            }
        }
        System.out.println(sum);
    }
}
